package com.client.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class ICpUserData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5626153802019356693L;
	
	private int id;
	private int day;
	private int hour;
	private int minute;
	private int plugin;
	private int channel;
	private int project;
	private String province;
	private String region;
	private int count;
	private int newcount;
	public ICpUserData()
	{
		
	}
	public ICpUserData(int plugin, int channel, int project, String province, String region)
	{
		this.id = -1;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
		Calendar cal = Calendar.getInstance();
		this.day = Integer.parseInt(sdf.format(cal.getTime()));
		this.hour = cal.get(Calendar.HOUR_OF_DAY);
		this.minute = cal.get(Calendar.MINUTE) / 10;
		this.plugin = plugin;
		this.channel = channel;
		this.project = project;
		this.province = province;
		this.region = region;
		this.count = 0;
		this.newcount = 0;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}
	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	public int getPlugin() {
		return plugin;
	}
	public void setPlugin(int plugin) {
		this.plugin = plugin;
	}
	public int getChannel() {
		return channel;
	}
	public void setChannel(int channel) {
		this.channel = channel;
	}
	public int getProject() {
		return project;
	}
	public void setProject(int project) {
		this.project = project;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getRegion() {
		return region;
	}
	public void setRegion(String region) {
		this.region = region;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getNewcount() {
		return newcount;
	}
	public void setNewcount(int newcount) {
		this.newcount = newcount;
	}
	
}
